<?php

namespace App\Admin\Renderables\DdbUser;

use App\Admin\Controllers\DdbUserController;
use Dcat\Admin\Support\LazyRenderable;

class ShowDetailRenderable extends LazyRenderable
{
    public function render()
    {
        // 获取外部传递的参数
        $payload = $this->payload;
        
        $id = 0;
        if (isset($payload['id'])) {
            $id = $payload['id'];
        }
        $content = (new DdbUserController)->detail($id, 'dialog');
        return $content;
    }
}